package com.sg.business.commons.labelprovider.usertask;

import com.sg.business.model.Project;
import com.sg.business.model.UserTask;
import com.sg.business.model.Work;

public class UserTaskWorkProjectHtmlLabel extends AbstractUserTaskHtmlLabel {

	@Override
	protected String getUserTaskText(UserTask userTask) {
		Work work = userTask.getWork();
		if(work!=null){
			Project project = work.getProject();
			if(project!=null){
				return project.getLabel();
			}
		}
		return null;
	}
	

}
